package cn.iocoder.yudao.module.ao.controller.admin.academicyear.vo;

import lombok.*;
import java.util.*;
import java.time.LocalDate;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 学年及班级信息分页 Request VO")
@Data
public class AcademicYearPageReqVO extends PageParam {

    @Schema(description = "学校ID", example = "1")
    private Long schoolId;

    @Schema(description = "学年，如2024-2025")
    private String schoolYear;

    @Schema(description = "学期名称")
    private String termName;

    @Schema(description = "学期代码")
    private String termCode;

    @Schema(description = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate[] startDate;

    @Schema(description = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate[] endDate;

    @Schema(description = "是否当前学期")
    private Boolean isCurrent;

    @Schema(description = "状态（0=禁用 1=启用）")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}